﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Data;

/// <summary>
/// Summary description for phong_tro
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
// [System.Web.Script.Services.ScriptService]
public class xomtrosv_service : System.Web.Services.WebService
{

    public xomtrosv_service()
    {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public DataTable fncPhongTroGet(string strPass, int iTrangHienTai, int iSoBanGhi, string strKhuVuc, int iGia, int iDienTich, string strPT_ID, string strKieuPhong, string strUS_ID, int iMod)
    {
        try
        {
            if (strPass != OsPortal.oStringHelper.fncGetAppSettings("PASSWORD_SERVICE")) return null;
            return clsPhongTro.PhongTro_FND(iTrangHienTai, iSoBanGhi, strKhuVuc, iGia, iDienTich, strPT_ID, strKieuPhong, strUS_ID, iMod).Tables[0];

        }
        catch (Exception ex)
        {
            return null;
        }
    }
}
